From: Cosimo Cecchi Date: Tue, 14 Feb 2012 20:57:34 +0000 (-0500) Subject: screenshot: add missing shell_screenshot_new() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7043 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c20503028a5509ca0b6fb0397fff28e560248ed9;p=gnome-shell.git screenshot: add missing shell_screenshot_new() And fix its declaration. --- diff --git a/src/shell-screenshot.c b/src/shell-screenshot.c index 792e73749..6295427eb 100644 --- a/src/shell-screenshot.c +++ b/src/shell-screenshot.c @@ -399,3 +399,9 @@ shell_screenshot_screenshot_window (ShellScreenshot *screenshot, g_simple_async_result_run_in_thread (result, write_screenshot_thread, G_PRIORITY_DEFAULT, NULL); g_object_unref (result); } + +ShellScreenshot * +shell_screenshot_new (void) +{ + return g_object_new (SHELL_TYPE_SCREENSHOT, NULL); +} diff --git a/src/shell-screenshot.h b/src/shell-screenshot.h index 9be1574bd..26b3667ee 100644 --- a/src/shell-screenshot.h +++ b/src/shell-screenshot.h @@ -23,7 +23,7 @@ typedef struct _ShellScreenshotClass ShellScreenshotClass; GType shell_screenshot_get_type (void) G_GNUC_CONST; -ShellScreenGrabber *shell_screenshot_new (void); +ShellScreenshot *shell_screenshot_new (void); typedef void (*ShellScreenshotCallback) (ShellScreenshot *screenshot, gboolean success,